<?php
/**
 * Copyright (c) 2006-2007, Julien PORTALIER
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright    Copyright (c) 2006-2007, Julien PORTALIER
 * @link         http://featherphp.googlecode.com/
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

// gzip
ob_start('ob_gzhandler');

// file
$filepath = preg_replace(':^/:', '', $_GET['url']);
if (!file_exists($filepath))
{
	header("HTTP/1.0 404 Not Found");
	exit;
}

// content-type
header('Content-Type: text/css');

// browser & proxy caches
header("Expires: ".gmdate("D, j M Y H:i:s", time() + 3600*2)." GMT");
header("Cache-Control: cache"); // HTTP/1.1
header("Pragma: cache"); // HTTP/1.0

// file content
readfile($filepath);
?>